#!/usr/bin/python
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns
from researchSNS.Group.views import *

urlpatterns = patterns('',
                       (r'^gr/(\w+)/$', show_group),
                       (r'^gr/(\w+)/page/([1-9]\d*)/$', show_group),
                       #(r'^gr/(\w+)/page/(1)/(join|exit)/$', show_group),
                       (r'^join_group/([1-9]\d*)/$', join_group),
                       (r'^exit_group/([1-9]\d*)/$', exit_group),
                       (r'^topics/$', show_topics),
                       (r'^topics/page/([1-9]\d*)/$', show_topics),
                       (r'^posts/$', show_posts),
                       (r'^posts/page/([1-9]\d*)/$', show_posts),
                       (r'^questions/$', show_questions),
                       (r'^questions/page/([1-9]\d*)/$', show_questions),
                       (r'^my_topics/$', my_topics),
                       (r'^my_topics/page/([1-9]\d*)/$', my_topics),
                       (r'^my_replied_topics/$', my_replied_topics),
                       (r'^my_replied_topics/page/([1-9]\d*)/$', my_replied_topics),
                       (r'^post/([1-9]\d*)/$', show_post_one),
                       (r'^post/([1-9]\d*)/page/([1-9]\d*)/$', show_post_one),
                       #(r'^post/([1-9]\d*)/page/([1-9]\d*)/(\w+)/$', show_post_one),
                       #(r'^post/([1-9]\d*)/page/([1-9]\d*)/(\w+)/([1-9]\d*)/$', show_post_one),
                       (r'^add_reply/([1-9]\d*)/([1-9]\d*)/$', add_reply),
                       (r'^deal_post/([1-9]\d*)/(\w+)/$', deal_post),
                       (r'^deal_post/([1-9]\d*)/(\w+)/([1-9]\d*)/([1-9]\d*)/$', deal_post),
                       (r'^members/([1-9]\d*)/$', show_members),
                       (r'^members/([1-9]\d*)/page/([1-9]\d*)/$', show_members),
					   #(r'^new_topic/$', new_topic),
                       (r'^new_topic/([1-9]\d*)/$', new_topic),
                       (r'^update_topic/([1-9]\d*)/$', update_topic),
                       (r'^new_group/$', new_group),
                       (r'^update_group/([1-9]\d*)/$', update_group),
                       (r'^recommend_groups/$', recommend_groups),
                       (r'^all_groups/$', all_groups),
                       (r'^all_groups/page/([1-9]\d*)/$', all_groups),
                       (r'^my_groups/$', my_groups),
                       (r'^my_groups/page/([1-9]\d*)/$', my_groups),
                       (r'^friend_groups/([1-9]\d*)/$', friend_groups),
                       (r'^friend_groups/([1-9]\d*)/page/([1-9]\d*)/$', friend_groups),
                       (r'^apply_friend_group/([1-9]\d*)/([1-9]\d*)/([1-9]\d*)/$', apply_friend_group),
                       (r'^accept_friend_group/([1-9]\d*)/([1-9]\d*)/(\w+)/$', accept_friend_group),
                       (r'^cancel_friend_group/([1-9]\d*)/([1-9]\d*)/$', cancel_friend_group),
                       (r'^accept_member/([1-9]\d*)/([1-9]\d*)/(\w+)/$', accept_member),
                       (r'^group_requests/([1-9]\d*)/$', deal_requests),
                       (r'^guideline/$', show_guideline),

                    )
